package com.b.controller;

import com.b.domain.CoinRecord;
import com.b.service.CoinRecordService;
import org.springframework.web.bind.annotation.*;
import jakarta.annotation.Resource;


/**
 * 投币记录表(coin_record)表控制层
 *
 * @author xxxxx
 */
@RestController
@RequestMapping("/coin_record")
public class CoinRecordController {
    /**
     * 服务对象
     */
    @Resource
    private CoinRecordService coinRecordService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public CoinRecord selectOne(Integer id) {
        return coinRecordService.selectByPrimaryKey(id);
    }





}
